package com.pmcc.core.repository;

import com.pmcc.core.entity.security.Employee;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by syk
 */
public interface EmployeeRepository extends JpaRepository<Employee, String> {

    Employee findByUsername(String username);

    Page<Employee> findAll(Specification<Employee> spec, Pageable pageable);

}
